home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
UNIVERSE
/
SHARED.DIR
/
01043_Script_1043
< prev
next >
Wrap
Text File
|
1995-11-21
|
2KB
|
106 lines
on fadeSoundChan chan
global gVolume
-- Be sure to update copy that lives in INTRO2.DIR
if not soundBusy(chan) then exit
if the multiSound then
set v = the volume of sound chan
repeat while v > 0
set v = v / 2
set the volume of sound chan = v
set t = the ticks + 30
repeat while the ticks < t
go to the frame
end repeat
end repeat
else
sound fadeOut chan,120
set t = the ticks + 360 -- dmd this long?
repeat while the ticks < t
updateStage
end repeat
end if
sound stop chan
set the volume of sound chan = gVolume
end fadeSoundChan
on doCredits
global gCreditReturnM, gCreditReturnF, gCom, gNavPalette
global gCurHist, gCurData, gOldCom, gFiorellaOnStage
hideOverheadMenu
updateStage
if gFiorellaOnStage then stopHelp
if the movie = "TOUR.DIR" then stopTour
else if the movie = "MOVIES.DIR" then stopMovies
if the type of sprite 10 = 16 then
set cn = the castNum of sprite 10
if the castType of cast cn = #digitalVideo then set the movieRate of sprite 10 = 0
end if
set gOldCom = gCom
if gCom then
if gCurHist=0 then unGrayHist
if gCurData=0 then unGrayData
go to objectLabel()
set the visibility of sprite 22 = 0
set the visibility of sprite 23 = 0
set the visibility of sprite 24 = 0
set the visibility of sprite 25 = 0
tell gNavPalette to lCloseNavPalette(1)
else
puppetTransition 52,8,8
end if
set gCreditReturnF = the frame
set gCreditReturnM = the movie
cursor 4
go to frame "Black Frame"
if gCom then tell gNavPalette to lCloseNavPalette(1)
if the machineType <> 256 then
go to movie "CREDITS.DIR"
else
go to movie "CREDITSP.DIR"
end if
cursor -1
end doCredits
on endCredits
global gCreditReturnM, gCreditReturnF, gCom, gNavPalette
global gOldCom
cursor 4
go to frame 1
if not gOldCom then
go to frame "Black Frame" of movie gCreditReturnM
go to frame gCreditReturnF
else
go to frame gCreditReturnF of movie gCreditReturnM
end if
--if gCom then tell gNavPalette to lOpenNavPalette
cursor -1
end endCredits